function signOut()
{
    $.get("SignOut");
}

$('#main_login_form').submit(function() {
    var valid = false;
    if ($('#username').val() == "") {
        alert("Please enter the Username.");
        focusIt("username");
        
    } else if ($('#password').val() == "") {
        alert("Please enter the Password.");
        focusIt("password");
        
    } else {
        $('#currentURL').val(document.URL);
        valid = true;
        
    }
    return valid;
});

function resendActivation(email)
{
    $.ajax({
        type: "POST",
        url: "ResendActivation",
        data: {
            username: $("username").val(),
            email: email
        },
        success: function(){
            $("content").html("<p class='white' align='middle'>We have re-sent an activation email. Please proceed to activate your account.</p>");
        },
        dataType: "text"
    });
}